import { ref } from 'vue'
import type { UnwrapRef, defineComponent } from 'vue'

export const useComponentRef = (component: ReturnType<typeof defineComponent>): UnwrapRef<InstanceType<typeof component>> => {
	return ref<InstanceType<typeof component> | null>(null)
}

